package ru.nnstu.medialib.service;

import java.util.List;

import ru.nnstu.medialib.dao.AlbumDAO;
import ru.nnstu.medialib.dao.AlbumDAOImpl;
import ru.nnstu.medialib.domain.Album;

public class AlbumServiceImpl implements AlbumService {

	AlbumDAO albumDAO;
	
	public AlbumServiceImpl() {
		super();
		albumDAO = new AlbumDAOImpl();
	}

	@Override
	public void addAlbum(Album album) {
		albumDAO.saveAlbum(album);
	}

	@Override
	public List<Album> listAlbum() {
		return albumDAO.listAlbum();
	}

	@Override
	public void removeAlbum(Long id) {
		albumDAO.removeAlbum(id);
	}

}
